﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Medianamik.Core;
using Telerik.Web.UI;

namespace Medianamik.UI.ConfigManagement
{
    public partial class PageTemplateList : BaseModuleListPage
    {
        protected override void GridNeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            pageTemplateGrid.DataSource = ConfigManager.GetAll<PageTemplate>(CurrentUICulture)
                 .OrderBy(m => m.Name);
        }

        protected override RadGrid Grid
        {
            get { return pageTemplateGrid; }
        }

        protected override UpdatePanel GridUpdatePanel
        {
            get { return mainUpdatePanel; }
        }

        protected override string ManagementURL
        {
            get { return "pagetemplatemanagement.aspx"; }
        }

        protected override string ReturnUrl
        {
            get { return "/medianamik/configmanagement/pagetemplatelist.aspx"; }
        }
    }
}
